package org.jeecg.modules.bicycle.order.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.bicycle.order.entity.BikeVehicleOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.bicycle.order.vo.BikeVehicleOrderByIdRes;
import org.jeecg.modules.bicycle.order.vo.BikeVehicleOrderRes;
import org.jeecg.modules.param.member.vo.MemberStatisticsReq;
import org.jeecg.modules.param.station.vo.StatisticalReq;
import org.jeecg.modules.system.messagelog.vo.SysMessageTemplateRes;

import java.util.List;

/**
 * @Description: 借车记录
 * @Author: 月月鸟
 * @Date:   2021-05-28
 * @Version: V1.0
 */
public interface BikeVehicleOrderMapper extends BaseMapper<BikeVehicleOrder> {

    Page<BikeVehicleOrderRes> pageList(Page<BikeVehicleOrderRes> page,@Param("bikeVehicleOrderRes") BikeVehicleOrderRes bikeVehicleOrderRes);

    List<BikeVehicleOrderRes> list(BikeVehicleOrderRes bikeVehicleOrderRes);


    BikeVehicleOrderByIdRes pageListById(String id);

    SysMessageTemplateRes selectMessage(String y_n_yes);

    List<BikeVehicleOrder> getBikeOrderLendByStationId(StatisticalReq statisticalReq);

    int getReturnCountByStationId(StatisticalReq statisticalReq);

    List<BikeVehicleOrder> getBikeOrderLendByUserId(MemberStatisticsReq memberStatisticsReq);

    Integer selectVehicleCount(@Param("status") String status,@Param("stationIds") String[] stationIds);

    Integer selectPickCount();

    Integer selectParkCount();

}
